<include file="Public:header" />
<style type="text/css">
    .left_title{

        font-size: 15px;
        line-height: 40px;
        width:10%;
    }
    .right_content{
        color: orange;
    }
</style>
<!-- main content start-->
<div class="main-content" >

<!-- header section start-->
<div class="header-section">

    <!--toggle button start-->
    <a class="toggle-btn"><i class="fa fa-bars"></i></a>
    <!--toggle button end-->
    <!--notification menu start -->
    <div class="menu-right">
        <ul class="notification-menu" style="margin-top: 15px;">
            <li>
                <span class="span" style="margin-top: 100px;"><!-- data-toggle="dropdown"-->
                    账户余额(元)<span style="color: red; font-size: 16px; font-weight: 800 ">{$info.money}</span>
                </span>
            </li>
        </ul>
    </div>
    <!--notification menu end -->

</div>
<!-- header section end-->
<!-- page heading start-->
<div class="page-heading">
    <h3>
       商家信息管理
    </h3>
    <ul class="breadcrumb">
        <li><a href="#">首页</a></li>
        <li> 商家信息管理 </li>
        <li class="active"> 查看商户信息 </li>
    </ul>
</div>
<!-- page heading end-->
<!--body wrapper start-->
<div class="wrapper">
    <section class="panel">
        <header class="panel-heading">
            商家信息管理
        </header>
        <div class="directory-info-row">
            <div class="row">
                <div class="col-md-6 col-sm-6" style="width: 80%;">
                    <div class="panel">
                        <div class="panel-body">
                           <!-- <h4>{$info.nickname} <span class="text-muted small"> - {$info.account}</span></h4>
                            <div class="media">
                                <a class="pull-left" href="#">
                                    <img class="thumb media-object" src="{$info.logo}" onerror="this.src='__IMG__/cat.png'" alt="" width="100">
                                </a>-->

                                <div class="media-body">
                                    <div class="form-group" style="line-height: 30px;padding:20px;">

                                        <div style="border-bottom:1px dashed #ccc; ">
                                            <label class="left_title">账号：</label>
                                            <span class="right_content">{$info.account}</span>
                                        </div>
                                        <div style="border-bottom:1px dashed #ccc; ">
                                            <label class="left_title">联系人：</label>
                                            <span class="right_content">{$info.linker}</span>
                                        </div>
                                        <div style="border-bottom:1px dashed #ccc; ">
                                            <label class="left_title">电话：</label>
                                            <span class="right_content">{$info.phone}</span>
                                        </div>

                                        <div style="border-bottom:1px dashed #ccc; ">
                                            <label class="left_title">是否可用：</label>
                                            <eq name="info.state" value="1">
                                                <span class="right_content">可用</span>
                                            </eq>
                                            <eq name="info.state" value="0">
                                            <span class="right_content">不可用</span>
                                            </eq>
                                        </div>
                                        <div style="border-bottom:1px dashed #ccc; ">
                                            <label class="left_title">账户余额：</label>
                                            <span class="right_content">{$info.money}&nbsp;(单位:元)</span>
                                        </div>
                                        <div style="border-bottom:1px dashed #ccc; ">
                                            <label class="left_title">添加时间：</label>
                                            <span class="right_content">{$info.add_time|date="Y-m-d H:i:s",###}</span>
                                        </div>
                                        <div style="border-bottom:1px dashed #ccc; ">
                                            <label class="left_title">有效期：</label>
                                            <span class="right_content">
                                                <empty name="info.expiry_time">
                                                    -
                                                    <else/>
                                                    {$info.expiry_time|date="Y-m-d H:i:s",###}
                                                </empty>
                                            </span>
                                        </div>

                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-lg-offset-2 col-md-6 col-sm-6">
                            <button type="button" class="btn btn-primary" onclick="history.go(-1)">返回</button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>
</div>
<!--body wrapper end-->
<!-- main content end-->
    <script>
        function checkout(){
            if($("#name").val()==""){
                toast("名字不得为空",false);
                return false;
            }
            if($("#phone").val()==""){
                toast("手机号码不得为空",false);
                return false;
            }
            return true;
        }
    </script>
<include file="Public:footer" />